{include file="public/header" /}

    <!--零零诉城市合伙人标题部分开始-->
   {volist name="ret" id="vo"}
   {if condition="$key eq 0"}
    <div class="bg-color-gray" id="index-bg1">
        <div class="layui-fluid layui-margin-bottom-100 wow bounceInLeft" data-wow-duration='1.2s'>
            <div class="layui-row">
                <div class="layui-col-md12  layui-text-center layui-one">
                    <span class="layui-padding layui-boder-b">{$vo.title}</span>
                </div>
            </div>
            <div class="layui-row" style="margin-top: 60px;">
                <div class="layui-col-md12  layui-text-center layui-two">
                    <span class="">{$vo.generalize}</span>
                </div>
            </div>
        </div>
        <!--零零诉城市合伙人标题部分结束-->

        <!--零零诉城市合伙人内容部分开始-->
        <div class="layui-container layui-margin-bottom-100 wow bounceInRight" data-wow-duration='1.2s'>
            <div class="layui-row">
                <div class="layui-col-md12">
                {$vo.content}
                </div>
            </div>
        </div>
    </div>
{/if}
{/volist}
    <!--零零诉城市合伙人内容部分结束-->

    <!--选择零零诉的优势标题部分开始-->
{volist name="ret" id="vo"}
{if condition="$key eq 1"}
    <div class="layui-fluid layui-margin-top-100 layui-margin-bottom-100 wow bounceInLeft" data-wow-duration='1.2s'>
        <div class="layui-row">
            <div class="layui-col-md12  layui-text-center layui-one">
                <span class="layui-padding layui-boder-b text-color-black">{$vo.title}</span>
            </div>
        </div>
        <div class="layui-row" style="margin-top: 60px;">
            <div class="layui-col-md12  layui-text-center layui-two">
                <span class="text-color-black">{$vo.generalize}</span>
            </div>
        </div>
    </div>
    <!--选择零零诉的优势标题部分开始-->
    <!--选择零零诉的优势内容部分开始-->
    <div class="layui-container layui-margin-bottom-100 wow bounceInRight" data-wow-duration='1.2s'>
        <div class="layui-row layui-col-space30">
            {volist name="$vo.son" id="vo2"}
            <div class="layui-col-md4">
                <div class="citypar-wraper">
                    <div class="citypar-wraper-img">
                        <img src="{$vo2.thumb}" width="100%">
                    </div>
                    <div class="citypar-thumb">
                        <h2 class="layui-text-center">{$vo2.title}</h2>
                            {$vo2.content}
                    </div>
                </div>
            </div>
            {/volist}
        </div>
    </div>
{/if}
{/volist}
    <!--选择零零诉的优势内容部分结束-->

    <!--申请成为城市合伙人标题部分开始-->
{volist name="ret" id="vo"}
{if condition="$key eq 2"}
    <div class="bg-color-gray" id="index-bg1">
        <div class="layui-fluid layui-margin-bottom-100 wow bounceInLeft" data-wow-duration='1.2s'>
            <div class="layui-row">
                <div class="layui-col-md12  layui-text-center layui-one">
                    <span class="layui-padding layui-boder-b">{$vo.title}</span>
                </div>
            </div>
            <div class="layui-row" style="margin-top: 60px;">
                <div class="layui-col-md12  layui-text-center layui-two">
                    <span class="">{$vo.generalize}</span>
                </div>
            </div>
        </div>
        <!--申请成为城市合伙人标题部分结束-->

        <!--申请成为城市合伙人内容部分开始-->
        <div class="layui-container layui-margin-bottom-100 wow bounceInRight" data-wow-duration='1.2s'>
            <div class="layui-row layui-boder-all">
                <div class="layui-col-md6">
                    <form class="citipar-form-group" id="from">
                        <div class="citipar-form-item">
                            <label for="username">姓名</label>
                            <input type="text" name="name" id="username" placeholder="请输入姓名">
                            <span class="text-color-red flot-l">*</span>
                        </div>
                        <div class="citipar-form-item">
                            <label for="telnumber">手机</label>
                            <input type="tel" name="phone" id="telnumber" placeholder="请输入手机号">
                            <span class="text-color-red flot-l">*</span>
                        </div>
                        <div class="citipar-form-item">
                            <label for="rename">推荐人姓名</label>
                            <input type="text" name="tname" id="rename" placeholder="请输入推荐人姓名或无">
                        </div>
                        <div class="citipar-form-item">
                            <label for="addr">所在地区</label>
                            <input type="text" name="address" id="addr" placeholder="请输入详细地址">
                            <span class="text-color-red flot-l">*</span>
                        </div>
                        <div class="citipar-form-item">
                            <label for="codenumber">验证码</label>
                            <input class="yzcode"  type="text" name="cold" id="codenumber" placeholder="请输入验证码">
                            <span class="codek"><img src="{:captcha_src()}" alt="captcha" id="captch" width="79" height="33"
                                                     onclick="this.src='{:captcha_src()}?rand='+Math.random()" /></span>
                            <a href="javascript:;" onclick="document.getElementById('captch').src='{:captcha_src()}?rand='+Math.random();">看不清楚，换一张</a>
                        </div>
                        <button type="submit" class="submit">立即提交</button>
                    </form>
                </div>
                <div class="layui-col-md6">
                   {$vo.content}
                </div>
            </div>
        </div>
    </div>
{/if}
{/volist}
    <!--申请成为城市合伙人内容部分结束-->
<script>
    /*请成为城市合伙人*/
    layui.use(['form'],function () {
        var form = layui.form;
        $("#from").submit(function (e) {
            e.preventDefault();
            var formzie = $(this).serialize();
            $.post("{:url('/index/citypar/register')}",formzie,function (data) {
                if(data.code == 0){
                    layer.msg(data.msg)
                }else if(data.code == 2){
                    layer.msg(data.msg);
                    setTimeout(function () {
                        window.location.href="{:url('login/index')}";
                    },2000)
                }else{
                    layer.msg(data.msg);
                    setTimeout(function () {
                        location.reload();
                    },2000);
                }
            });
        });
        form.render();
    });
</script>
    {include file="public/footer" /}
